package org.tong.activiti6.serviceTask;

import lombok.extern.slf4j.Slf4j;
import org.activiti.engine.delegate.DelegateExecution;
import org.springframework.stereotype.Component;

/**
 * @author
 * @date 2022-12-04 15:38
 */
@Component("hiServiceTaskComp")
@Slf4j
public class HiServiceTaskComp {

    public void hi(DelegateExecution execution, String name) {
        String id = execution.getId();
        String eventName = execution.getEventName();
        String processInstanceId = execution.getProcessInstanceId();
        log.info("调用了HiServiceTask: id={}, eventName={}, proc_inst_id={}, name={}", id, eventName, processInstanceId, name);
    }
}
